package com.sc.design.PK.create.abfac_builder.builder;

/**
 * @author sc
 * Created on  2017/12/7
 */
public abstract class CarBuilder {

    private ICar car;
    private BluePrint bluePrint;

    public void receiverBluePrint(BluePrint bluePrint){
        this.bluePrint = bluePrint;
    }
    protected BluePrint getBluePrint(){
        return this.bluePrint;
    }
    public Car buildCar(){
        return new Car(buildEngine(),buildWheel());
    }
    public abstract String buildWheel();
    public abstract String buildEngine();
}
